package com.bw.ivideoproject.login

import android.os.Bundle
import androidx.navigation.NavController
import androidx.navigation.fragment.NavHostFragment
import com.bw.ivideoproject.R
import com.bw.ivideoproject.databinding.ActivityLoginBinding
import com.bw.lib_mvvm.BaseActivity

class LoginActivity : BaseActivity<ActivityLoginBinding>() {

    lateinit var navController:NavController
    override fun initView() {

    }

    override fun initData() {
        val navHostFragment = supportFragmentManager.findFragmentById(R.id.fcv) as NavHostFragment
        navController = navHostFragment.navController

    }

    fun navFragment(targetId:Int,bundle:Bundle?){
        navController.navigate(targetId,bundle)
    }

    override fun bindLayout(): Int {
        return R.layout.activity_login
    }
}